package com.no1.musicmgr.mapper;

import com.no1.musicmgr.entity.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface MusicMapper {

    // 插入音乐
    boolean insertMusic(Music music);

    // 根据音乐ID删除音乐
    boolean deleteMusicById(Integer musicId);

    // 更新音乐信息
    boolean updateMusic(Music music);

    // 根据音乐ID查询音乐
    Music selectMusicById(Integer musicId);

    // 按条件查询音乐
    ArrayList<Music> listMusic(Music music);

    ArrayList<Music> myMusic(String user_id);

    ArrayList<Music> mdMusic(String user_id);

    boolean deletesc(Music music);

    ArrayList<Music> list1Music(Music music);

    ArrayList<Music> gedan(String form_Name);
}
